﻿using PLCS.Application.Contracts.EquipmentApp.Dtos;
using PLCS.Application.Contracts.HisTaskApp.Dtos;

namespace PLCS.Application.Contracts.EquipmentApp;

public interface IEquipmentAppService : ICrudAppService<EquipmentDto, Guid, PagedResultRequestDto, EquipmentEditDto>
{
    Task<PagedResultDto<EquipmentDto>> GetListBySearchAsync(PagedResultRequestDto input, string? equipmentNo, string? equipmentType);

    Task<EquipmentDto> GetBySNoAsync(string no);

    Task InsertListAsync(IEnumerable<EquipmentEditDto> equipments);

    Task UpdateAsync(EquipmentEditDto input);

    Task DeleteAllAsync();
}